package com.tootallgavin.uttt;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.RelativeLayout;

public class GameActivity extends Activity {

    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

     start1();
     //  start2();


    }

    private void start2() {
        setContentView(R.layout.main);


        //     View v=  this.getLayoutInflater().inflate(R.layout.main,null);
        utttView uttt = (utttView) findViewById(R.id.game_view);
        tttView ttt = (tttView) findViewById(R.id.small_game_view);
        uttt.setmTttView(ttt);

        uttt.setTttViewListener();
    }

    private void start1() {
        utttView uttt = new utttView(getBaseContext());
        tttView ttt = new tttView(getBaseContext());
        RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
        uttt.setmTttView(ttt);
        uttt.setTttViewListener();

        addContentView(uttt,params);
        addContentView(ttt,params);
    }
}
